<template>
  <div id="app">
    <el-container>
      <el-header height="60px">
        <div class="header-content">
          <h1 class="logo">模板結構化轉換系統</h1>
          <div class="version-info">
            <el-tag type="success">1.0 → 1.1 轉換引擎</el-tag>
          </div>
        </div>
      </el-header>
      
      <el-container>
        <el-aside width="200px">
          <el-menu
            :default-active="$route.path"
            router
            class="sidebar-menu"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b">
            
            <el-menu-item index="/">
              <el-icon><House /></el-icon>
              <span>首頁</span>
            </el-menu-item>
            
            <el-menu-item index="/upload">
              <el-icon><Upload /></el-icon>
              <span>模板上傳</span>
            </el-menu-item>
            
            <el-menu-item index="/conversion">
              <el-icon><Refresh /></el-icon>
              <span>自動轉換</span>
            </el-menu-item>
            
            <el-menu-item index="/review">
              <el-icon><Edit /></el-icon>
              <span>人工複核</span>
            </el-menu-item>
            
            <el-menu-item index="/templates">
              <el-icon><Files /></el-icon>
              <span>模板庫</span>
            </el-menu-item>
            
            <el-menu-item index="/versions">
              <el-icon><Histogram /></el-icon>
              <span>版本管理</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import { House, Upload, Refresh, Edit, Files, Histogram } from '@element-plus/icons-vue'

export default {
  name: 'App',
  components: {
    House,
    Upload,
    Refresh,
    Edit,
    Files,
    Histogram
  }
}
</script>

<style>
#app {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
}

.el-header {
  background-color: #409eff;
  color: white;
  line-height: 60px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.version-info {
  display: flex;
  align-items: center;
}

.el-aside {
  background-color: #545c64;
}

.sidebar-menu {
  border-right: none;
}

.el-main {
  background-color: #f5f7fa;
  padding: 20px;
}
</style>